/*This file is part of WZLibCP.

 *  WZLibCP is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

 *  WZLibCP is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

 *  You should have received a copy of the GNU General Public License
    along with WZLibCP.  If not, see <http://www.gnu.org/licenses/>.
		
	Author: calc0000
*/
#ifndef __WZLIB_WZCRYPTO_H
#define __WZLIB_WZCRYPTO_H
#include "WZLibConfig.h"

#include <string>

namespace WZLib{
	/**\brief A static class that contains various cryptology info.

	This class contains WZKey (which is included in WZGMSKey.h), WZKeyLength, the length of WZKey in bytes,
	and readFromFile, which will load WZKey with the bytes in fname.
	*/
	class WZCrypto{
	public:
		//!WZ Decrypting Key.  Defined in WZGMSKey.cpp .
		static const byte		WZKey[];
		//!Length of WZKey in bytes.
		static long			WZKeyLength;
		/**\brief Reads WZKey from a file.

		Loads the file, determines its length, loads the entire content of the file into
		WZKey, then closes the file.  This is currently unused/unusable.
		*/
		static ErrorCode	readFromFile(std::string fname);
	};
};

#endif